package win.ganbo.ssm.enums;

/**
 * 用户是否激活
 * @Author ganbo E-mail:bo.gan@56qq.com
 * @CreateTime 2017-08-02 9:53
 */

public enum Activate {

    YES(0, "激活"), NO(1, "禁用");
    private int index;
    private String name;

    Activate(int index, String name) {
        this.index = index;
        this.name = name;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Activate{" +
                "index=" + index +
                ", name='" + name + '\'' +
                '}';
    }
}
